package com.example.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: mtl
 * @Date: 2022/1/21 15:46
 * @Description: 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "my_file")
public class MyFile implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文件名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 文件地址
     */
    @TableField(value = "`path`")
    private String path;

    /**
     * 访问地址
     */
    @TableField(value = "access_path")
    private String accessPath;

    /**
     * 文件类型
     */
    @TableField(value = "suffix")
    private String suffix;

    /**
     * 创建者
     */
    @TableField(value = "creator")
    private String creator;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 逻辑删除状态 0存在 1删除
     */
    @TableField(value = "delete_state")
    private Integer deleteState;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PATH = "path";

    public static final String COL_ACCESS_PATH = "access_path";

    public static final String COL_SUFFIX = "suffix";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_DELETE_STATE = "delete_state";
}